home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 2: PC / frozenfish_august_1995.bin / bbs / d09xx / d0908.lha / MegaView / Install MegaView < prev    next >
Text File  |  1993-08-28  |  3KB  |  130 lines

  1. (if (> @user-level 0)   ; print a little welcome
  2.     (message "This utility installs MegaView onto your harddisk.\n"
  3.              "Since you are an advanced user, you will "
  4.              "be asked a place to copy the MegaView Program to.\n"
  5.              "The sample FileActions file will be installed into your"
  6.              " S: directory\n"
  7.              "You will also get the chance to choose where the doc file "
  8.              "should go to.\n")
  9. )
  10.  
  11. (set @default-dest 
  12.     (askdir (prompt "Select a directory to copy MegaView to")
  13.             (help @askdir-help)
  14.             (default "SYS:Utilities/")
  15.             (newpath)
  16.     )
  17. )
  18.  
  19. (if (= @pretend 0)
  20.     (copyfiles  
  21.         (source "MegaView")
  22.         (dest   @default-dest)
  23.         (infos)
  24.     )
  25.  
  26. (set samedir 
  27.         (askchoice
  28.                 (prompt "What shall I do next?")
  29.                 (help @askchoice-help)
  30.                 (choices "Install Doc File in same directory"
  31.                          "Install Doc File in other directory"
  32.                          "Don't install the doc file")
  33.                 (default 0)
  34.         )    
  35. )
  36.  
  37. (select samedir
  38.     (set pdir @default-dest)
  39.     (set pdir 
  40.         (askdir (prompt "Select a directory to copy the docfile to")
  41.                 (help @askdir-help)
  42.                 (default @default-dest)
  43.                 (newpath)
  44.         )
  45.     )  
  46.     (set pdir "NIL:")
  47. )
  48.  
  49. (if (<> pdir "NIL:")
  50.     (if (= @pretend 0)
  51.         (copyfiles
  52.             (source "MegaView.guide")
  53.             (dest   pdir)
  54.             (infos)
  55.         )
  56.     )
  57. )
  58.  
  59. (if (= @pretend 0)
  60.     (copyfiles
  61.         (source "FileActions")
  62.         (dest   "S:")
  63.     )
  64. )
  65.  
  66. (set vernum (getversion "libs:whatis.library"))
  67. (set thisver (getversion "libs/whatis.library"))
  68. (set yn 0)
  69. (if (< vernum thisver)
  70.     (set yn 
  71.         (askbool
  72.             (prompt "You have an old version of whatis.library or none at all. You will need whatis.library 3.5. Do you want to install the new version?")
  73.             (help @askbool-help)
  74.             (default 1)
  75.         )
  76.     )
  77. )
  78.  
  79. (if (= yn 1)
  80.     (if (= @pretend 0)
  81.        (copyfiles  
  82.             (source "libs/whatis.library")
  83.             (dest   "libs:whatis.library")
  84.         )
  85.     )
  86. )
  87.  
  88. (set yn 0)
  89. (set there (exists "S:FileTypes" (noreq)))
  90. (if (= there 0) 
  91.     (set yn 
  92.         (askbool
  93.             (prompt "Whatis.library needs the file S:FileTypes. You have none installed. Do you want to install the sample version?")
  94.             (help @askbool-help)
  95.             (default 1)
  96.         )
  97.     )
  98. )
  99.  
  100. (if (= yn 1)
  101.     (copyfiles
  102.         (source "FileTypes")
  103.         (dest "S:FileTypes")
  104.     )
  105. )    
  106.  
  107. (set yn 
  108.     (askbool
  109.         (prompt "Do you want to install the whatis.library doc file")
  110.         (help @askbool-help)
  111.         (default 1)
  112.     )
  113. )
  114.  
  115. (if (= yn 1)
  116.     ((set pdir 
  117.         (askdir (prompt "Select a directory to copy the docfile to")
  118.                 (help @askdir-help)
  119.                 (default @default-dest)
  120.                 (newpath)
  121.         )
  122.     )
  123.     (copyfiles
  124.         (source "Whatislibrary.doc")
  125.         (dest   pdir)
  126.     ))
  127. )
  128.  
  129.